% The "vectorized" function to generate the coin tosses without using the command for.
function LM11_2_MatlabChallenge
r = rand(1000,1);
Com = 0.6*ones(1000,1);
Seq = (r < Com);
end

